package com.zcx.test.service.impl;

import com.zcx.test.mapper.RoleMapper;
import com.zcx.test.pojo.Role;
import com.zcx.test.pojo.RoleExample;
import com.zcx.test.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhaochangxin
 * @date 2022/3/8 16:28
 *
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleMapper roleMapper;
    @Override
    public List<Role> queryRoleList(RoleExample roleExample) {
        return roleMapper.selectByExample(roleExample);
    }

    @Override
    public Role queryRoleByRoleId(String id) {
        return roleMapper.queryRoleByRoleId(id);
    }
}
